package com.spring.configaop;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("config-aop.xml");
//		School p = (School) ctx.getBean("school");
//		System.out.println(p);
		
		SchoolService p2 = (SchoolService) ctx.getBean("schoolService");
		p2.save();
		
	}
}
